/*
 * eds_p.h - EnCluster Base DB Server part types and definitions
 * Clunix, cezanne@clunix.com, 2005.3
 *
 * $Id: eds_p.h,v 1.1.1.1 2007/10/01 01:05:18 cezanne Exp $
 *
 * Copyright (c) 2001-2005 by Clunix Inc. All Rights Reserved.
 */
#ifndef _EDS_P_H_
#define _EDS_P_H_

#define EDS_SNAPSHOT_ACCMODE		(0600)

/* callback recoreded in pref */
#define EDS_CB_TYPE_MASK		0xff0000
#define EDS_CB_TYPE(cbt)		((cbt) & EDS_CB_TYPE_MASK)
#define EDS_CB_NONE			0x000000
#define EDS_CB_UPDATE_TRIGGER		0x010000  /* bit mask */
#define EDS_CB_UPDATE_TRIGGER_DIRTY	0x020000  /* bit mask */
#define EDS_CB_EST			0x040000  /* bit mask for marking est */
#define EDS_CB_UPDATE_EST		0x080000  /* bit mask for marking update est */
#define EDS_CB_SELF			0x100000  /* bit mask for self node only cb */

#define EDS_PREF_DEFAULT		(EDS_OWN_RDWR|EDS_PUB_READ|EDS_UPDATE_ALL|EDS_UPDATE_BUFFERED|EDS_UPDATE_MANDATORY|EDS_CB_NONE)

/*
eds_err_t eds_traverse(const sr_t *sr, const sr_t *sr_LNP, int opt, sr_t **psr_res);
*/
sr_t *load_sobj(const char *clxdir, const char *modname);

#endif		/* _EDS_P_H_ */
